import {request} from "@/utils/request";

//获取岗位列表
export function loadWorkerByDep(data, callBack) {
    return request({
        url: '/work_station/list_by_dep',
        method: 'get',
        data,
        isUser: true,
        // isRealIp: true,
        // noLogin: true
    }, callBack)
}

//呼叫
export function callWorker(data, callback) {
    return request({
        url: '/maintenance/call',
        method: 'post',
        data,
        type: 'json',
        isYarn: true,
    }, callback);
}

//呼叫列表
export function loadCallByMachineData(data, callback) {
    return request({
        url: "/maintenance/list_call_by_machine",
        method: "get",
        data,
        isYarn: true
    }, callback);
}

//呼叫报到
export function report4Calling(data, callback) {
    return request({
        url: '/maintenance/report_4_calling',
        method: 'post',
        data,
        isFile: true,
        isYarn: true,
    }, callback);
}